package 慕课网.homework5;

public class Emperor {
    private String world;
    private Emperor(){

    }
    private static Emperor instance;
    public static Emperor getInstance(){
        if(instance==null)
        {
            instance=new Emperor();
        }
        return instance;
    }

    public String getWorld() {
        return world;
    }

    public void setWorld(String world) {
        this.world = world;
    }
}
